/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2013/03/27
* File: ForBeginRenderPass.h
* Blog: http://www.cnblogs.com/zengqh/
**/

#pragma once

#include "../SceneRenderPass.h"

namespace HY
{
class ForBeginRenderPass : public SceneRenderPass
{
public:
	virtual void render(const RenderableList& render_list);
	void swapRenderTarget();

protected:
	ForBeginRenderPass(RenderSystem* render_sys);
	virtual ~ForBeginRenderPass();

	void checkRenderBuffer();

protected:
	TextureBuffer*		color_buffer_[2];
	TextureBuffer*		depth_buffer_;
	RenderTargetBase*	render_targets[2];
	RenderTargetBase*	windows_render_target_;
	bool				is_curr_front_buffer_;
};
}